package org.pray.activity.combination;

/**
 * File
 *
 * @author 春江花朝秋月夜
 * @since 2024/3/17 15:06
 */
public class File extends Component{
    @Override
    public void addComponent(Component component) {
        throw new UnsupportedOperationException();   //不支持这些操作了
    }

    @Override
    public void removeComponent(Component component) {
        throw new UnsupportedOperationException();
    }

    @Override
    public Component getChild(int index) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void modifyName() {
        System.out.println("文件名称修改成功！"+this);   //具体的名称修改操作
    }
}
